﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreateTaskView.aspx.cs" Inherits="CourseView_CreateTaskView" 
    MasterPageFile="~/Logged.master"%>

<asp:Content ContentPlaceHolderID="head" runat="server">
    <link href='Styles/jquery.ui.datepicker.css' rel='stylesheet'
          type='text/css' />
    <script src='Scripts/jquery.ui.datepicker.js' type='text/javascript'>
    </script>
    <!--script type='text/javascript'>
        $(function () {
            $('#startDateTextBox').datepicker();
        });
    </!--script-->

</asp:Content>
<asp:Content ContentPlaceHolderID="contentPlaceHolder" runat="server">
    <asp:Table ID="Table2" runat="server" Width="94%" Height="50%">
        <asp:TableRow runat="server">
            <asp:TableCell runat="server">
                <asp:Label ID="Label1" runat="server" Text="Nazwa zadania:"></asp:Label>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell runat="server">
                <asp:TextBox ID="nameTextBox" runat="server" Width="100%"></asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>

        <asp:TableRow ID="TableRow1" runat="server">
            <asp:TableCell ID="TableCell1" runat="server">
                <asp:Label ID="Label3" runat="server" Text="Start zadania:"></asp:Label>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow2" runat="server">
            <asp:TableCell ID="TableCell2" runat="server">
                <asp:TextBox ID="startDateTextBox" runat="server" Width="100%"></asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow3" runat="server">
            <asp:TableCell ID="TableCell3" runat="server">
                <asp:Label ID="Label4" runat="server" Text="Koniec zadania:"></asp:Label>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow4" runat="server">
            <asp:TableCell ID="TableCell4" runat="server">
                <asp:TextBox ID="endDateTextBox" runat="server" Width="100%"></asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell runat="server">
                <asp:Label ID="Label2" runat="server" Text="Zawartość zadania: (Znaczniki html będą interpretowane)"></asp:Label>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell runat="server" Height="80%">
                <asp:TextBox ID="contentTextBox" runat="server" TextMode="MultiLine" ToolTip="Zawartość zadamia (Znaczniki HTML są interpretowane)" Width="100%" Height="100%" ValidateRequestMode="Disabled"></asp:TextBox>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell runat="server">
                <asp:Label ID="errorLabel" runat="server" Text="Coś poszło nie tak, spróbuj ponownie później." ForeColor="Red" Visible="False"></asp:Label>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    
</asp:Content>

<asp:Content ContentPlaceHolderID="toolbarPlaceHolder" runat="server">
    <asp:ImageButton ID="addTaskToolbarButton" runat="server" CommandArgument="~/CourseView/ViewCourseTasks.aspx" CommandName="redirect" CssClass="toolbarButton" ImageAlign="Right" ImageUrl="~/Resources/add_user.png" ToolTip="Dodaj nowe zadanie" OnClick="addTaskToolbarButton_Click" />
</asp:Content>